package practice;

import java.util.HashSet;
import java.util.Random;
import java.util.Set;

public class Demo {
	public static void main(String[] args) {
		System.out.println(getC());
		System.out.println("cccc");
	}

	public static Set getC() {
		Random random = new Random();
		Set set = new HashSet();

		while (set.size() < 120) {
			int x = random.nextInt(6);
			int y = random.nextInt(6);
			while (y == x) {
				y = random.nextInt(6);
			}
			int z = random.nextInt(6);
			while (z == x || z == y) {
				z = random.nextInt(6);
			}
			System.out.println("" + x + "" + z + "" + y);
			System.out.println(set.size());
			set.add("" + x + "" + z + "" + y);
		}
		return set;
	}
}